﻿using hello.csharp.common.Interfaces;
using hello.csharp.domain;
using MongoDB.Driver;
using NLog;

namespace hello.csharp.storage.Db.Mongo
{
    public class MongoManager : INosqlDbManager
    {
        private readonly Logger _logger = LogManager.GetCurrentClassLogger();

        public MongoManager()
        {
            var conn = "mongodb://localhost:27017";
            var databaseName = "jeelu-19a";
            var mongoClient = new MongoClient(conn);
            Database = mongoClient.GetDatabase(databaseName);
        }

        public IMongoDatabase Database { get; }
    }
}
